﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// 登陆时间控制
/// </summary>
public class WorkTimeManager
{
    public List<long> DeniedGroupID { get; set; }
    public List<long> DeniedUserID { get; set; }
    public List<string> BeginTime { get; set; }
    public List<string> EndTime { get; set; }

    protected  WorkTimeManager()
    {

    }

    public static WorkTimeManager GetDefault()
    {
        WorkTimeManager work = new WorkTimeManager();
        work.DeniedGroupID = new List<long>(1);
        work.DeniedUserID = new List<long>(1);
        work.BeginTime = new List<string>(7);
        for (int i = 0; i < 7; i++)
        {
            work.BeginTime.Add(new TimeSpan(8, 0, 0).ToString());
        }
        work.EndTime = new List<string>(7);
        for (int i = 0; i < 7; i++)
        {
            work.EndTime.Add(new TimeSpan(18, 0, 0).ToString());
        }
        return work;
    }
}